package org.smile.design.compose.hyl;

public class Application {
    public static void main(String[] args) {
        Folder folder = new Folder("d",1);//生成D盘
//        folder.getNodes().add(new Folder("document"));
//        folder.getNodes().add(new File("1.txt"));
        Folder document =new Folder("document",2);//文件夹document
        Folder work= new Folder("work",2);//文件夹document
        document.getNodes().add(work);//document 下面有个work的文件夹
        folder.getNodes().add(document);//在D盘下有一个document
        folder.getNodes().add(new File("1.txt"));//文件1.tet
        document.getNodes().add(new File("2.txt"));
        folder.print();

    }
}
